package net.lcheng.sellerCenter.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.List;

/**
 * 产品统一规格模型
 * Created by LV on 2016/7/1.
 */
public class ProductUnityFormatModel {
    private String productId;//产品ID

    private String categoryId; //产品分类ID

    private List<String> categoryName;//产品名字

    private String shopCategoryId;//店铺分类ID

    @Size(min = 1,max = 50,message = "<标题长度1-50字以内>")
    private String productName;//产品名称

    private String productCode;//产品编号

    @NotNull(message = "<至少上传一张照片>")
    private String[] productImgs;

    @NotEmpty(message = "<发货地不为空>")
    private String addrProvinceName;//所在省份

    @NotEmpty(message = "<发货地省市不为空>")
    private String addrProvinceCode;//所在省份code

    private String addrCityName;//所在市

    @NotEmpty(message = "<发货地市区不为空>")
    private String addrCityCode;//所在市code

    @Pattern(regexp = "[0-9]+",message = "<库存数量为纯数字>")
    private String inventoryNum;//库存数量

    @Pattern(regexp = "[0-9]+[.]?[0-9]*?",message = "<商品原价为纯数字或小数>")
    private String marketPrice;//市场价

    @Pattern(regexp = "[0-9]+[.]?[0-9]*?",message = "<微店价为纯数字或小数>")
    private String salePrice;//销售价

    @NotEmpty(message = "<商品的详情不为空>")
    private String productDescription;//商品描述

    @Pattern(regexp = "[0-9]+[.]?[0-9]*?",message = "<运费为纯数字或小数>")
    private String freight;//运费

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(String shopCategoryId) {
        this.shopCategoryId = shopCategoryId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String[] getProductImgs() {
        return productImgs;
    }

    public void setProductImgs(String[] productImgs) {
        this.productImgs = productImgs;
    }

    public String getAddrProvinceName() {
        return addrProvinceName;
    }

    public void setAddrProvinceName(String addrProvinceName) {
        this.addrProvinceName = addrProvinceName;
    }

    public String getAddrProvinceCode() {
        return addrProvinceCode;
    }

    public void setAddrProvinceCode(String addrProvinceCode) {
        this.addrProvinceCode = addrProvinceCode;
    }

    public String getAddrCityName() {
        return addrCityName;
    }

    public void setAddrCityName(String addrCityName) {
        this.addrCityName = addrCityName;
    }

    public String getAddrCityCode() {
        return addrCityCode;
    }

    public void setAddrCityCode(String addrCityCode) {
        this.addrCityCode = addrCityCode;
    }

    public String getInventoryNum() {
        return inventoryNum;
    }

    public void setInventoryNum(String inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    public String getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(String marketPrice) {
        this.marketPrice = marketPrice;
    }

    public String getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(String salePrice) {
        this.salePrice = salePrice;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public List<String> getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(List<String> categoryName) {
        this.categoryName = categoryName;
    }
}
